package com.zgy.container_docker.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: zhanggy
 * @Date: 2024/6/29 8:02
 * @email: 442391947@qq.com
 * @Desc:
 */
@RequestMapping(value = "test")
@RestController
public class TestController {
    @Value(value = "${test.one}")
    private String testOne;
    @GetMapping(value = "index")
    public String test() {
        return testOne;
    }

    @GetMapping(value = "test")
    public String addIndex() {
        return "test/test";
    }

    @GetMapping(value = "ping")
    public String ping() {
        return "pong";
    }
}
